package day02;

public class Demo {
    public static void main(String[] args) {
       int a=100;
      Test test=  new Test(){
            @Override
            public void play() {
                System.out.println(a);
            }
        };
        test.play();
    }
}

class Test{
    public void play(){
        System.out.println("玩游戏");
    }
}
